package service

import "bc/dao"

type image struct {

}
func (t *image)Create(d map[string]interface{}) error {

	return dao.ImageDao.Create(d)

}
func (t *image)First(w map[string]interface{})(bool, *dao.Image){

	return dao.ImageDao.First(w)

}
func (t *image)Delete(w map[string]interface{})bool{
	return dao.ImageDao.Delete(w)
}
func (t *image)Find(w map[string]interface{},page int,pageSize int) ([]*dao.Image,int,error) {
	return dao.ImageDao.Find(w,page,pageSize)
}
func (t *image)Update(uuid string,d map[string]interface{}) bool {
	return dao.ImageDao.Update(uuid,d)
}
var Image = &image{}
